<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of populateServerMenu</title>
  <meta name="keywords" content="populateServerMenu">
  <meta name="description" content="POPULATESERVERMENU reads available DAS services for browsing in DASMiner">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
</head>
<body>
<a name="_top"></a>
<div><a href="../index.html">Home</a> &gt;  <a href="index.html">code</a> &gt; populateServerMenu.m</div>

<!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png">&nbsp;Master index</a></td>
<td align="right"><a href="index.html">Index for code&nbsp;<img alt=">" border="0" src="../right.png"></a></td></tr></table>-->

<h1>populateServerMenu
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>POPULATESERVERMENU reads available DAS services for browsing in DASMiner</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>function populateServerMenu(hServerMenu) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> POPULATESERVERMENU reads available DAS services for browsing in DASMiner
 
 POPULATESERVERMENU read the local structure that stores all DAS services 
 and populates the server popupmenu in DASMiner GUI.
 
 SYNTAX: populateServerMenu(hServerMenu)
          hServerMenu - handle for the server popupmenu

 See also <a href="addNewServer.html" class="code" title="function [status] = addNewServer(uri,msgBox)">ADDNEWSERVER</a>, <a href="searchRegistry_gui.html" class="code" title="function varargout = searchRegistry_gui(varargin)">SEARCHREGISTRY_GUI</a>

    DASMiner: DAS library and browser for Matlab.
    Diogo Veiga, March 2008.</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="addNewServer.html" class="code" title="function [status] = addNewServer(uri,msgBox)">addNewServer</a>	ADDNEWSERVER adds a new DAS service for browsing within the browser</li></ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="das_gui.html" class="code" title="function varargout = das_gui(varargin)">das_gui</a>	DAS_GUI main GUI of DASMiner Browser</li><li><a href="searchRegistry_gui.html" class="code" title="function varargout = searchRegistry_gui(varargin)">searchRegistry_gui</a>	SEARCHREGISTRY_GUI is the GUI for DAS Registry search in Browser</li></ul>
<!-- crossreference -->


<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function populateServerMenu(hServerMenu)</a>
0002 <span class="comment">% POPULATESERVERMENU reads available DAS services for browsing in DASMiner</span>
0003 <span class="comment">%</span>
0004 <span class="comment">% POPULATESERVERMENU read the local structure that stores all DAS services</span>
0005 <span class="comment">% and populates the server popupmenu in DASMiner GUI.</span>
0006 <span class="comment">%</span>
0007 <span class="comment">% SYNTAX: populateServerMenu(hServerMenu)</span>
0008 <span class="comment">%          hServerMenu - handle for the server popupmenu</span>
0009 <span class="comment">%</span>
0010 <span class="comment">% See also ADDNEWSERVER, SEARCHREGISTRY_GUI</span>
0011 <span class="comment">%</span>
0012 <span class="comment">%    DASMiner: DAS library and browser for Matlab.</span>
0013 <span class="comment">%    Diogo Veiga, March 2008.</span>
0014 
0015 <span class="keyword">try</span>
0016    strServer = load(<span class="string">'localServ.mat'</span>, <span class="string">'locServ'</span>);
0017    locServ = strServer.locServ;
0018 <span class="keyword">catch</span>
0019     <span class="comment">%create default services Uniprot and UCSC</span>
0020     <a href="addNewServer.html" class="code" title="function [status] = addNewServer(uri,msgBox)">addNewServer</a>(<span class="string">'DS_409'</span>,0);    <span class="comment">%Uniprot</span>
0021     <a href="addNewServer.html" class="code" title="function [status] = addNewServer(uri,msgBox)">addNewServer</a>(<span class="string">'DS_546'</span>,0);    <span class="comment">%UCSC</span>
0022     strServer = load(<span class="string">'localServ.mat'</span>, <span class="string">'locServ'</span>);
0023     locServ = strServer.locServ;
0024 <span class="keyword">end</span>
0025 
0026 servers = <span class="string">'Choose Data Server ...'</span>;
0027 
0028 <span class="keyword">for</span> i=1:size(locServ,2)
0029     servers = strvcat(servers,locServ(i).title);
0030 <span class="keyword">end</span>
0031 servers = strvcat(servers,<span class="string">'Add Data Server ...'</span>);
0032 
0033 set(hServerMenu,<span class="string">'String'</span>,cellstr(servers));
0034 set(hServerMenu,<span class="string">'Value'</span>,1);</pre></div>
<hr><address>Generated on Tue 17-Feb-2009 16:59:45 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address>
</body>
</html>